package net.uman.web.util;

import net.uman.entity.User;
import net.uman.framework.modules.web.struts2.Struts2Utils;

public class WebUtils {
	
	private static final String USER_KEY = "user";
	/**
	 * 获取当前的用户
	 * @return
	 */
	public static User getCurrentUser(){
		return (User)Struts2Utils.getSessionAttribute(USER_KEY);
	}
}
